package com.phone.handle;

import java.util.List;

/**
 * Created by tisen on 2017/9/5.
 */
public interface HandleImp<T> {
    public String add(T t) throws Exception;

    public void delete(String id) throws Exception;

    public void update(String id, T t) throws Exception;

    public void update(T t) throws Exception;

    public List<T> search(String sql) throws Exception;

    public T get(String id) throws Exception;

    public boolean checkOwnerId(String ownerid) throws Exception;

}
